var e = require;
var t = module;
var o = exports;
var n = o;
Object.defineProperty(n, "__esModule", {value: !0});
var i = (function () {
    function e() {
        (this._posID = ""),
            (this._customStyle = null),
            (this._customAdDisplayState = !1),
            (this._isLoadComplete = !1),
            (this._loadAutoShow = !1),
            (this._isConsume = !1),
            (this._onLoadCallbackRef = null),
            (this._onCloseCallbackRef = null),
            (this._onHideCallbackRef = null),
            (this._onErrorCallbackRef = null);
    }
    return (
        (e.prototype.init = function (e) {
            console.log("customAd init"),
                (this._posID = e),
                (this._onLoadCallbackRef = this.onCustomAdLoad.bind(this)),
                (this._onCloseCallbackRef = this.onCustomAdClose.bind(this)),
                (this._onHideCallbackRef = this.onCustomAdHide.bind(this)),
                (this._onErrorCallbackRef = this.onCustomAdError.bind(this));
        }),
        (e.prototype.showCustomAd = function (e, t) {
            console.log("showCustomAd", e),
                (this._customStyle = e),
                (this._showCallback = t),
                (this._customAdDisplayState = !0);
        }),
        (e.prototype.hideCustomAd = function (e) {
            console.log("hideCustomAd", e),
                (this._customAdDisplayState = !1),
                (this._loadAutoShow = !1),
                (this._showCallback = null);
        }),
        (e.prototype.destroyCustomAd = function () {
            console.log("destoryCustomAd"),
                (this._customStyle = null),
                (this._showCallback = null),
                (this._customAdDisplayState = !1),
                (this._isLoadComplete = !1),
                (this._loadAutoShow = !1),
                (this._isConsume = !1);
        }),
        e
    );
})();
n.default = i;
